package NenuTest.Pages;

import junit.framework.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;

import java.util.concurrent.TimeUnit;

/**
 * Created with IntelliJ IDEA.
 * User: stem
 * Date: 24.11.13
 * Time: 15:16
 * To change this template use File | Settings | File Templates.
 */
public abstract class fatherPage {
    protected WebDriver driver;
    public By point;
    public void poinContain(){
        WebDriverWait wait=new WebDriverWait(driver,10);
        wait.until(ExpectedConditions.visibilityOfElementLocated(point));
        Assert.assertTrue(driver.findElement(point).isEnabled());
    }
}
